<!DOCTYPE html>
<html lang="zh-CN">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="renderer" content="webkit">
  <style>
	*{
		margin: 0;
		padding:0;
		border-width: 0;
		box-sizing: border-box;
		overflow: hidden;
	}  
    html,body {
      width:100%;
	  height:100%;
	  overflow: hidden;
/*      width: 450px;
      height: 450px;*/
    }

    #myPlayer {
      width:100%;
      height: 100%;
    }
  </style>
  <script src="ezuikitOld.js"></script>
  <!-- <script src="https://gou-bin.oss-cn-beijing.aliyuncs.com/ezuikit.js"></script> -->
  <script src="jquery.min.js"></script>
  <script src="../js/common/tool.js"></script>
</head>

<body>
  <video 
    id="myPlayer"
    autoplay
    src=""
    controls
    playsInline 
    webkit-playsinline
	style='height:100%;width:100%;font-size:16px;object-fil:fill;'
  >
  </video>

  <script>
	var player=null;
    $(function(){

    var liveSrc = $_GET.liveSrc;
	console.log(liveSrc);
	while(liveSrc.indexOf("[ask]")!=-1){
	  liveSrc = liveSrc.replace("[ask]","?");
	}
	while(liveSrc.indexOf("[and]")!=-1){
	  liveSrc =liveSrc.replace("[and]","&");
	}
	while(liveSrc.indexOf("[eq]")!=-1){
	  liveSrc =liveSrc.replace("[eq]","=");
	}
    $('#myPlayer').attr("src", liveSrc);
      //$('#myPlayer').attr("src", "http://hls.open.ys7.com/openlive/f01018a141094b7fa138b9d0b856507b.m3u8");
        player = new EZUIKit.EZUIPlayer('myPlayer');
	});
	window.onbeforeunload=function(){
	    player.stop();
	    console.log('视频关闭');
	}
  </script>
</body>

</html>